Hong Kong Old Style Scoring - Variation 3

Hi Oliver! Thank you for creating this game. It has brought my friends and I many hours of fun during quarantine. :) We're wondering if there's any chance you would consider adding the Hong Kong Old Style Scoring Variation 3? That is the style we learned from our parents in Hong Kong and is the style we are most familiar with. We would appreciate it very much. Thank you! http://mahjong.wikidot.com/rules:hong-kong-old-style-scoring -Fish

Fish 2020-09-20T07:59:22Z

Fish, thank you for the message. I would consider adding old hong kong rule.

Oliver 2020-09-23T02:22:56Z

Hi, Fish, I finally got time to add the Hong Kong Old Style Rule Varation 3. I have uploaded it. Please enjoy if you find it fine, or let me know if there is any bugs! Cheers,

Oliver 2020-10-05T08:19:50Z

what is the difference betwwen old style and what was there before?

puppetgal2 2020-10-07T22:18:03Z

Hong Kong Style: variation 2

Hong Kong Old Style: variation 3

Oliver 2020-10-08T03:41:25Z

Both rules are online.

Old rule: the score items are different, and the payoff is power of "Fan", while the payoff of new rule is just "Fan".

See link above for details

Oliver 2020-10-08T03:47:00Z

Thank you so much, Oliver! We will try it out tomorrow night and let you know!

Fish 2020-10-17T01:47:13Z

Hi Oliver! We tried out the Old Style Variation 3 today and the scoring looks good! Unfortunately, there seems to be a bug when someone clicks the Win button, the buttons disappear, but the game does not continue and is stuck. The games that froze were 14896 and 14898. I've attached snapshots of the 2 hands that froze. In the first pic, "Overdrive - West" was trying to win and in the second pic, "fish - West" was trying to win with the 1 Circle. Thanks in advance for looking into it!

2020-10-17.png

2020-10-17 2.png

Fish 2020-10-18T07:43:31Z

Also would like to send my thanks! I was able to reproduce it with bots just now. I'm trying to win off "Bot 422 - South" after they discarded the "80000" tile. This is game 14910, hand 3 (the stuck game does not get recorded unfortunately) with a minimum score of 3.

2020-10-18 00_52_01-Window.png

Thank you for adding this variation!

monkeytacos 2020-10-18T08:02:28Z

Hi, Fish & monkeytacos!

Thanks for your feedback. I tried a few hands and it went well. So I suggest it was the browser cache. Please try press "Ctrl + F5" in the game page to reload the whole page, or you can manually clear the cached files of this site. Let me know if it still does not work.

Oliver 2020-10-20T10:25:26Z

Thanks Oliver.

I tried it again with CTRL+F5 in the game page, and inside a game, and also opening up chrome dev tools and selecting disable cache in the network tab. I still was able to have it hang immediately after I press the win button available unfortunately.

MJ-self win hang.PNG

minimal score is 3. In this hand, I got the 7-sticks on my draw (it disappeared right after I press win, so that's why it isn't in the screenshot). I think I should have won with 7 points (1 for self win, 3 for semi pure, 1 for all chi, 2 for honors)

I'm not sure what the problem is. Could it be hanging after reaching N number of points?

monkeytacos 2020-10-22T01:59:12Z

strange. i played a few hands with chrome and firefox on my phone, it was fine. hand id 1110498.

not sure what the problem is...

令狐冲 2020-10-22T03:54:04Z

strange indeed...

I've played a bit more on a different browser (Edge) and I'm also able to reproduce it. I see it in higher value winning hands (e.g. 6 or higher)

on a separate note, I recently won with this and I believe it is missing the "all chow" or "all chi" 1 point, so instead of 5 points, I only got 4.

all-chi-missing-points.PNG

Thanks!

monkeytacos 2020-10-23T09:24:46Z

If it helps, "winListener" on line 1660 is called while "win" on line 1118 isn't when it hangs.

I'm almost convinced it is on hands that are 5 points or more that causes the game to freeze.

monkeytacos 2020-10-23T09:44:49Z

that was impressive, mankeytacos!

I cannot make a hand with 5+ fans with random initial hands. Then, I made a hand with arranged initial hand and it went fine.

I will try more later

maque.png

Oliver 2020-10-23T13:52:34Z

Thanks Oliver, I'm out of ideas then :)

monkeytacos 2020-10-23T20:38:40Z

hi, monkeytacos, if you would like to: when you find it stuck, press F12 to enter the debug interface, and click the "console" tab. Then click the button in the game that causes the stuck, there should be some error information, usually in red. That may help.

Oliver 2020-10-24T02:42:37Z

Unfortunately, I don't think there's much info there in the console logs:(

For this game:

2020-10-26 19_01_45-Mahjong-Free authentic Multi-player Board Game.png

I won, with the discarded '50000' tile by bot214, 1 point for honor, 1 point for wind, 3 for half flush.

and this was the console logs

2020-10-26 19_07_24-DevTools - maque.games_room.html.png

(All levels of logging was on)

monkeytacos 2020-10-27T02:06:04Z